package com.asset.salesforce.converter;

import com.asset.salesforce.domain.Employee;
import com.asset.salesforce.domain.File;
import com.asset.salesforce.form.ProfileForm;

public class ProfileConverter {
	
	public ProfileForm addToProfileForm(Employee employee){
		ProfileForm profileForm = new ProfileForm();
		File userPhoto = employee.getPhoto();
		if(!employee.getfName().equalsIgnoreCase("")){
			profileForm.setfName(employee.getfName());
		}
		if(!employee.getlName().equalsIgnoreCase("")){
			profileForm.setlName(employee.getlName());
		}
//		if(employee.getJobTitle().getId()!=null){
//			profileForm.setJobTitle(employee.getJobTitle().getId());
//		}
		if(!employee.getNickName().equalsIgnoreCase("")){
			profileForm.setNickName(employee.getNickName());
		}
		if(employee.getEmpInfo()!=null){
			profileForm.setEmpInfo(employee.getEmpInfo());
		}
//		if(userPhoto!=null){
//			Integer photoId = f
//		}
		return profileForm;
	}
}
